package com.ruoyi.school.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.school.mapper.SchoolCooperationPicturesMapper;
import com.ruoyi.school.domain.SchoolCooperationPictures;
import com.ruoyi.school.service.ISchoolCooperationPicturesService;

/**
 * 校企合作 产教融合Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-31
 */
@Service
public class SchoolCooperationPicturesServiceImpl implements ISchoolCooperationPicturesService 
{
    @Autowired
    private SchoolCooperationPicturesMapper schoolCooperationPicturesMapper;

    /**
     * 查询校企合作 产教融合
     * 
     * @param id 校企合作 产教融合主键
     * @return 校企合作 产教融合
     */
    @Override
    public SchoolCooperationPictures selectSchoolCooperationPicturesById(Long id)
    {
        return schoolCooperationPicturesMapper.selectSchoolCooperationPicturesById(id);
    }

    /**
     * 查询校企合作 产教融合列表
     * 
     * @param schoolCooperationPictures 校企合作 产教融合
     * @return 校企合作 产教融合
     */
    @Override
    public List<SchoolCooperationPictures> selectSchoolCooperationPicturesList(SchoolCooperationPictures schoolCooperationPictures)
    {
        return schoolCooperationPicturesMapper.selectSchoolCooperationPicturesList(schoolCooperationPictures);
    }

    /**
     * 新增校企合作 产教融合
     * 
     * @param schoolCooperationPictures 校企合作 产教融合
     * @return 结果
     */
    @Override
    public int insertSchoolCooperationPictures(SchoolCooperationPictures schoolCooperationPictures)
    {
        schoolCooperationPictures.setCreateTime(DateUtils.getNowDate());
        return schoolCooperationPicturesMapper.insertSchoolCooperationPictures(schoolCooperationPictures);
    }

    /**
     * 修改校企合作 产教融合
     * 
     * @param schoolCooperationPictures 校企合作 产教融合
     * @return 结果
     */
    @Override
    public int updateSchoolCooperationPictures(SchoolCooperationPictures schoolCooperationPictures)
    {
        schoolCooperationPictures.setUpdateTime(DateUtils.getNowDate());
        return schoolCooperationPicturesMapper.updateSchoolCooperationPictures(schoolCooperationPictures);
    }

    /**
     * 批量删除校企合作 产教融合
     * 
     * @param ids 需要删除的校企合作 产教融合主键
     * @return 结果
     */
    @Override
    public int deleteSchoolCooperationPicturesByIds(Long[] ids)
    {
        return schoolCooperationPicturesMapper.deleteSchoolCooperationPicturesByIds(ids);
    }

    /**
     * 删除校企合作 产教融合信息
     * 
     * @param id 校企合作 产教融合主键
     * @return 结果
     */
    @Override
    public int deleteSchoolCooperationPicturesById(Long id)
    {
        return schoolCooperationPicturesMapper.deleteSchoolCooperationPicturesById(id);
    }
}
